//
//  StaticVariables.h
//  LabanBrowser
//
//  Created by -Xh- on 3/9/13.
//  Copyright (c) 2013 VNG. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "UserDefaults.h"
#import "ConstantValues.h"
#import "SpeedDialAccess.h"
#import "BookmarkAccess.h"
#import "HistoryAccess.h"
#import "EditorView.h"
#import "SettingsDataProvider.h"
@interface StaticVariables : NSObject

typedef enum{
    DayMode=0,
    NightMode=1
    
}WebDisplayMode;

typedef enum{
    IsOpeningNewTab=0,
    IsResumingFromRecentTab=1,
    IsOpeningNothing=2
}OpenTabContext;

typedef enum{
    Automatically = 0,
    Portrait = 1,
    Landscape = 2,
    LandscapeRight = 3
}DeviceOrientation;


typedef enum{
    Everyday = 0,
    OnceAWeek = 1,
    OnceAMonth = 2,
    Never = 3
    
}HowOftenToCheckForUpdate;



typedef enum{
    SettingsNone = -1,
    SettingsTextSize = 0,
    SettingsDefaultZoom = 1,
    SettingsUserAgent = 2,
    SettingsOrientation = 3,
    SettingsCheckUpdates = 4,
    SettingsLanguage = 5
}SettingsChooserType;

@property (nonatomic) NSString* dbPath;
@property (nonatomic) UserDefaults* userDefaults;
@property (nonatomic) ConstantValues* constantValues;
@property (nonatomic) NSMutableArray* presetThemes;
@property (nonatomic) SpeedDialAccess* speedDialAccess;
@property (nonatomic) BookmarkAccess* bookmarkAccess;
@property (nonatomic) HistoryAccess* historyAccess;
@property (nonatomic) EditorView* editorView;
@property (nonatomic) SettingsDataProvider* settingsData;
@property (nonatomic) NSMutableDictionary* presetDialerURLDic;
@property (nonatomic) SettingsChooserType currentSettingsType;

+(id)shareVariables;
- (void)initAccess;
-(NSArray*)getAppropriateArrayForType:(SettingsChooserType)_chooserType;
-(NSArray*)getAppropriateArray;
-(int)currentIndexOfSettingsChooser;
-(void)initBonusStuffs;
@end
